home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct02130.geo / 00138.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  18.3 KB  |  845 lines

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   Set_NEXT(1)
  22.   set the visible of sprite 33 to 0
  23.   set the visible of sprite 34 to 0
  24.   repeat with i = 42 to 47
  25.     set the immediate of sprite i to 1
  26.     set the puppet of sprite i to 1
  27.   end repeat
  28.   set the puppet of sprite get_NavigatorHL() to 1
  29.   set the puppet of sprite Get_MarkSprite() to 1
  30.   set the mouseDownScript to "CheckOpenWindow"
  31. end
  32.  
  33. on InitSubjectSprite
  34.   if Get_ScreenSubject() <> "00" then
  35.     Set_SubjectSprite(39)
  36.     set the puppet of sprite Get_SubjectSprite() to 1
  37.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  38.     UpdateCursors(Get_SubjectSprite(), 4)
  39.   end if
  40. end
  41.  
  42. on GoToIntro
  43.   if Get_ScreenSubject() <> "00" then
  44.     set theNum to integer(Get_ScreenSubject())
  45.     SaveSeenScreens()
  46.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  47.   end if
  48. end
  49.  
  50. on Set_SubjectSprite theSp
  51.   global SubjectSprite
  52.   set SubjectSprite to theSp
  53. end
  54.  
  55. on Get_SubjectSprite
  56.   global SubjectSprite
  57.   return SubjectSprite
  58. end
  59.  
  60. on Set_SubjectHeight theSp
  61.   global SubjectHeight
  62.   set SubjectHeight to theSp
  63. end
  64.  
  65. on Get_SubjectHeight
  66.   global SubjectHeight
  67.   return SubjectHeight
  68. end
  69.  
  70. on CheckForTagWd
  71.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  72.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  73.     set the cursor of sprite 48 to [400, 401]
  74.   end if
  75. end
  76.  
  77. on PlaySound theSnd
  78.   global PCDEL
  79.   if Get_PlayDub() then
  80.     sound playFile 2, the pathName & "SND02" & PCDEL & theSnd
  81.   end if
  82. end
  83.  
  84. on GoMain
  85.   sound stop 2
  86.   SaveSeenScreens()
  87.   go(1, "NC_MM010.GEO")
  88. end
  89.  
  90. on GoFind
  91.   global FindWD, CDfilePath, PCDEL
  92.   if objectp(FindWD) then
  93.     forget(FindWD)
  94.   end if
  95.   set the cursor of sprite 48 to [400, 401]
  96.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  97.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  98.   set the titleVisible of FindWD to 0
  99.   set the modal of FindWD to 1
  100.   open(FindWD)
  101. end
  102.  
  103. on HideFINDWindow
  104.   global FindWD
  105.   if objectp(FindWD) then
  106.     forget(FindWD)
  107.   end if
  108. end
  109.  
  110. on closeFindWindow
  111.   global FindWD
  112.   if objectp(FindWD) then
  113.     forget(FindWD)
  114.   end if
  115.   set the cursor of sprite 48 to 0
  116.   tell the stage
  117.     continue()
  118.   end tell
  119. end
  120.  
  121. on OpenFind2WD theData
  122.   global Find2WD, CDfilePath, PCDEL
  123.   HideFINDWindow()
  124.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  125.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  126.   set the titleVisible of Find2WD to 0
  127.   set the modal of Find2WD to 1
  128.   tell Find2WD
  129.     UpdateSelection(theData)
  130.   end tell
  131.   open(Find2WD)
  132. end
  133.  
  134. on CloseFind2Window
  135.   global Find2WD
  136.   if objectp(Find2WD) then
  137.     forget(Find2WD)
  138.   end if
  139.   set the cursor of sprite 48 to 0
  140.   tell the stage
  141.     continue()
  142.   end tell
  143. end
  144.  
  145. on GoIndex
  146.   global IndexWD, CDfilePath, PCDEL
  147.   if objectp(IndexWD) then
  148.     forget(IndexWD)
  149.   end if
  150.   set the cursor of sprite 48 to [400, 401]
  151.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  152.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  153.   set the titleVisible of IndexWD to 0
  154.   set the modal of IndexWD to 1
  155.   tell IndexWD
  156.     RonenInit()
  157.   end tell
  158.   open(IndexWD)
  159. end
  160.  
  161. on OpenWordWD theData
  162.   global WordWD, CDfilePath, PCDEL
  163.   HIdeIndexWindow()
  164.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  165.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  166.   set the titleVisible of WordWD to 0
  167.   set the modal of WordWD to 1
  168.   tell WordWD
  169.     UpdateSelection(theData)
  170.   end tell
  171.   open(WordWD)
  172. end
  173.  
  174. on CloseWordWindow
  175.   global WordWD
  176.   if objectp(WordWD) then
  177.     forget(WordWD)
  178.   end if
  179.   set the cursor of sprite 48 to 0
  180.   tell the stage
  181.     continue()
  182.   end tell
  183. end
  184.  
  185. on HIdeIndexWindow
  186.   global IndexWD
  187.   if objectp(IndexWD) then
  188.     forget(IndexWD)
  189.   end if
  190. end
  191.  
  192. on CloseIndexWindow
  193.   global IndexWD
  194.   if objectp(IndexWD) then
  195.     forget(IndexWD)
  196.   end if
  197.   set the cursor of sprite 48 to 0
  198.   tell the stage
  199.     continue()
  200.   end tell
  201. end
  202.  
  203. on GoIndexMovie thekind
  204.   if thekind = "tool" then
  205.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  206.   else
  207.     go(1, Get_IndexMovie())
  208.   end if
  209. end
  210.  
  211. on set_IndexMovie theMoov
  212.   global IndexMovie
  213.   set IndexMovie to theMoov
  214. end
  215.  
  216. on Get_IndexMovie theMoov
  217.   global IndexMovie
  218.   return IndexMovie
  219. end
  220.  
  221. on GoTags
  222.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  223.   if objectp(TagWD) then
  224.     forget(TagWD)
  225.   end if
  226.   set the cursor of sprite 48 to [400, 401]
  227.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  228.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  229.   set the titleVisible of TagWD to 0
  230.   set the modal of TagWD to 1
  231.   tell TagWD
  232.     UpdateFields()
  233.     PlaceMySlider()
  234.     init()
  235.   end tell
  236.   open(TagWD)
  237. end
  238.  
  239. on OpenRenameWD theLine
  240.   global RenameWD, CDfilePath, PCDEL
  241.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  242.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  243.   set the titleVisible of RenameWD to 0
  244.   set the modal of RenameWD to 1
  245.   tell RenameWD
  246.     UpdateLine(theLine)
  247.   end tell
  248.   open(RenameWD)
  249. end
  250.  
  251. on UpdateRenameWD theText
  252.   global TagWD
  253.   tell TagWD
  254.     UpdateRename(theText)
  255.   end tell
  256.   CloseRenameWD()
  257. end
  258.  
  259. on CloseRenameWD
  260.   global RenameWD
  261.   if objectp(RenameWD) then
  262.     forget(RenameWD)
  263.   end if
  264. end
  265.  
  266. on OpenSureWD
  267.   global SureWD, CDfilePath, PCDEL
  268.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  269.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  270.   set the titleVisible of SureWD to 0
  271.   set the modal of SureWD to 1
  272.   open(SureWD)
  273. end
  274.  
  275. on CloseSureWD
  276.   global SureWD
  277.   if objectp(SureWD) then
  278.     forget(SureWD)
  279.   end if
  280. end
  281.  
  282. on ClearAllTags
  283.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  284.   CloseSureWD()
  285.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  286.   set TAGS_LIST to []
  287.   set TAGS_TITLES to EMPTY
  288.   set TAGS_DATA to EMPTY
  289.   tell TagWD
  290.     UpdateFields()
  291.     PlaceMySlider()
  292.     init()
  293.   end tell
  294.   updateStage()
  295. end
  296.  
  297. on CloseTagWindow
  298.   global TagWD
  299.   if objectp(TagWD) then
  300.     forget(TagWD)
  301.   end if
  302.   set the cursor of sprite 48 to 0
  303.   tell the stage
  304.     continue()
  305.   end tell
  306. end
  307.  
  308. on GoTagMovie
  309.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  310. end
  311.  
  312. on Set_TagMovie theMovie
  313.   global TagMovie
  314.   set TagMovie to theMovie
  315. end
  316.  
  317. on Get_TagMovie
  318.   global TagMovie
  319.   return TagMovie
  320. end
  321.  
  322. on MarkScreen toMark
  323.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  324.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  325.   set movieName to the movieName
  326.   if toMark = "MARK" then
  327.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  328.     set LineNum to count(TAGS_LIST)
  329.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  330.     put TheTitle into line LineNum of TAGS_TITLES
  331.     put movieName into item 1 of line LineNum of TAGS_DATA
  332.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  333.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  334.   else
  335.     set itemNum to getOne(TAGS_LIST, movieName)
  336.     deleteAt(TAGS_LIST, itemNum)
  337.     delete line itemNum of TAGS_TITLES
  338.     delete line itemNum of TAGS_DATA
  339.   end if
  340.   updateStage()
  341. end
  342.  
  343. on UpdateMark
  344.   global TAGS_LIST
  345.   set movieName to the movieName
  346.   if getOne(TAGS_LIST, movieName) then
  347.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  348.   end if
  349. end
  350.  
  351. on HandleSound
  352.   global volumeWindow, CDfilePath, PCDEL
  353.   if objectp(volumeWindow) then
  354.     forget(volumeWindow)
  355.   end if
  356.   EnableBtn("SOUND", get_SOUNDSprite())
  357.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  358.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  359.   set the titleVisible of volumeWindow to 0
  360.   tell volumeWindow
  361.     RestoreSoundStatus()
  362.   end tell
  363.   open(volumeWindow)
  364. end
  365.  
  366. on handleQuit
  367.   global QuitWindow, CDfilePath, PCDEL
  368.   cursor(4)
  369.   if objectp(QuitWindow) then
  370.     forget(QuitWindow)
  371.   end if
  372.   set the cursor of sprite 48 to [400, 401]
  373.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  374.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  375.   set the titleVisible of QuitWindow to 0
  376.   set the modal of QuitWindow to 1
  377.   open(QuitWindow)
  378. end
  379.  
  380. on handleHELP
  381.   EnableBtn("HELP", get_HELPSprite())
  382.   openHelpWd()
  383. end
  384.  
  385. on openHelpWd
  386.   global helpWD, lastFrame, CDfilePath, PCDEL
  387.   set the cursor of sprite 48 to [400, 401]
  388.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  389.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  390.   set the titleVisible of helpWD to 0
  391.   set the modal of helpWD to 1
  392.   open(helpWD)
  393.   set lastFrame to the frame
  394.   go("helpLoop")
  395. end
  396.  
  397. on closeHelpWd
  398.   global helpWD, lastFrame
  399.   set the cursor of sprite 48 to 0
  400.   forget(helpWD)
  401.   go(lastFrame)
  402. end
  403.  
  404. on HandleNEXT
  405.   GoNext()
  406.   EnableBtn("NEXT", get_NEXTSprite())
  407. end
  408.  
  409. on HandleBACK
  410.   if the castNum of sprite 32 = the number of cast "lamp_Off" then
  411.     UpdateCursors(32, 0)
  412.   end if
  413.   if the castNum of sprite 22 = the number of cast "HiLight" then
  414.     UpdateCursors(22, 0)
  415.   end if
  416.   EnableBtn("BACK", get_BACKSprite())
  417.   EnableBtn("NEXT", get_NEXTSprite())
  418.   Set_NEXT(1)
  419.   sound stop 2
  420.   go("start")
  421. end
  422.  
  423. on HandleGLOSSARY
  424.   global DicWindow
  425.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  426.   set the cursor of sprite 48 to [400, 401]
  427.   open(DicWindow)
  428.   tell the stage
  429.     pause()
  430.   end tell
  431.   tell DicWindow
  432.     go(2)
  433.   end tell
  434. end
  435.  
  436. on closeGLOSSARYwindow
  437.   set the cursor of sprite 48 to 0
  438.   continue()
  439. end
  440.  
  441. on closeNotePadWindow
  442.   set the cursor of sprite 48 to 0
  443.   continue()
  444. end
  445.  
  446. on HandleNOTEPAD
  447.   global NoteBookWindow, CDfilePath, PCDEL
  448.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  449.   set the cursor of sprite 48 to [400, 401]
  450.   if objectp(NoteBookWindow) then
  451.     forget(NoteBookWindow)
  452.   end if
  453.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  454.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  455.   set NBRect to the rect of NoteBookWindow
  456.   set x1 to getAt(NBRect, 1)
  457.   set y1 to getAt(NBRect, 2)
  458.   set x2 to getAt(NBRect, 3)
  459.   set y2 to getAt(NBRect, 4)
  460.   set the modal of NoteBookWindow to 1
  461.   set the windowType of NoteBookWindow to 2
  462.   set the titleVisible of window "NoteBook" to 0
  463.   open(NoteBookWindow)
  464. end
  465.  
  466. on createNoteBook
  467.   global NBPrintWindow, CDfilePath, PCDEL
  468.   if objectp(NBPrintWindow) then
  469.     forget(NBPrintWindow)
  470.   end if
  471.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  472.   set StageRect to the rect of the stage
  473.   set x1 to getAt(StageRect, 1)
  474.   set y1 to getAt(StageRect, 2)
  475.   set x2 to getAt(StageRect, 3)
  476.   set y2 to getAt(StageRect, 4)
  477.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  478.   set NBRect to the rect of NBPrintWindow
  479.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  480.   set the windowType of NBPrintWindow to 2
  481.   open(NBPrintWindow)
  482. end
  483.  
  484. on closePrintWindow
  485.   RestoreHilites()
  486. end
  487.  
  488. on closeQuitWindow
  489.   global QuitWindow
  490.   set the cursor of sprite 48 to 0
  491.   forget(QuitWindow)
  492.   continue()
  493. end
  494.  
  495. on leaveApplication
  496.   global QuitWindow, UsersData, TheBackWindow
  497.   forget(QuitWindow)
  498.   if the machineType <> 256 then
  499.   end if
  500.   quit()
  501. end
  502.  
  503. on keyDown
  504.   if not get_Disabled() then
  505.     if the commandDown and ((the key = "q") or (the key = ".")) then
  506.       handleQuit()
  507.     else
  508.       if (the keyCode = 76) or (the keyCode = 36) then
  509.         HandleNEXT()
  510.       else
  511.         pass()
  512.       end if
  513.     end if
  514.   end if
  515. end
  516.  
  517. on CheckOpenWindow
  518.   global volumeWindow
  519.   if objectp(volumeWindow) then
  520.     forget(volumeWindow)
  521.     continue()
  522.   end if
  523. end
  524.  
  525. on CheckRollOver
  526.   if rollOver(get_IndexSprite()) then
  527.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  528.     set Hloc to the locH of sprite get_IndexSprite()
  529.     set Vloc to the locV of sprite get_IndexSprite()
  530.   else
  531.     if rollOver(get_FindSprite()) then
  532.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  533.       set Hloc to the locH of sprite get_FindSprite()
  534.       set Vloc to the locV of sprite get_FindSprite()
  535.     else
  536.       if rollOver(Get_TagWdSprite()) then
  537.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  538.         set Hloc to the locH of sprite Get_TagWdSprite()
  539.         set Vloc to the locV of sprite Get_TagWdSprite()
  540.       else
  541.         set Hloc to EMPTY
  542.       end if
  543.     end if
  544.   end if
  545.   if Hloc <> EMPTY then
  546.     set the locH of sprite get_NavigatorHL() to Hloc
  547.     set the locV of sprite get_NavigatorHL() to Vloc
  548.     set the visible of sprite get_NavigatorHL() to 1
  549.     updateStage()
  550.   else
  551.     set the visible of sprite get_NavigatorHL() to 0
  552.     updateStage()
  553.   end if
  554. end
  555.  
  556. on setDefaultCursor
  557.   set cursorList to getCursorList()
  558.   set counter to count(cursorList)
  559.   repeat with i = 1 to counter
  560.     set currItem to getAt(cursorList, i)
  561.     if currItem <> 0 then
  562.       set CursorCastNum to getCursor(currItem)
  563.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  564.     end if
  565.   end repeat
  566. end
  567.  
  568. on UpdateCursors theSp, theCursor
  569.   global cursorList
  570.   setAt(cursorList, theSp, theCursor)
  571.   if theCursor = 0 then
  572.     set the cursor of sprite theSp to theCursor
  573.   else
  574.     set CursorCastNum to getCursor(theCursor)
  575.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  576.   end if
  577. end
  578.  
  579. on setEmptyCursor
  580.   set cursorList to getCursorList()
  581.   set counter to count(cursorList)
  582.   repeat with i = 1 to counter
  583.     set currItem to getAt(cursorList, i)
  584.     if currItem <> 0 then
  585.       set the cursor of sprite i to 0
  586.       setAt(cursorList, i, 0)
  587.     end if
  588.   end repeat
  589. end
  590.  
  591. on setCursorTool int
  592.   global CursorTool
  593.   set CursorTool to int
  594. end
  595.  
  596. on initCursorCastNum
  597.   global CursorCastNum
  598.   set CursorCastNum to "400,402,404,406"
  599. end
  600.  
  601. on getCursor cursorNum
  602.   global CursorCastNum
  603.   return integer(item cursorNum of CursorCastNum)
  604. end
  605.  
  606. on initCursorList list
  607.   global cursorList
  608.   if list = 1 then
  609.     set cursorList to [2, 3, 4, 3, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  610.   end if
  611.   setDefaultCursor()
  612. end
  613.  
  614. on getCursorList
  615.   global cursorList
  616.   return cursorList
  617. end
  618.  
  619. on ___BTNS_HANDLERS___
  620. end
  621.  
  622. on switchButt spriteNum, castDown, macroName
  623.   if getRollName() <> EMPTY then
  624.     set spNum to EMPTY
  625.     do("put get_" & getRollName() & "Sprite() into spNum")
  626.     set the castNum of sprite spNum to the number of cast getRollName()
  627.     setRollName(EMPTY)
  628.   end if
  629.   set flag to 0
  630.   set SaveCast to the castNum of sprite spriteNum
  631.   set flag to swapCast(spriteNum, SaveCast, castDown)
  632.   repeat while the stillDown
  633.     set flag to swapCast(spriteNum, SaveCast, castDown)
  634.   end repeat
  635.   if flag = 1 then
  636.     sound stop 2
  637.     do(macroName)
  638.   end if
  639. end
  640.  
  641. on swapCast spriteNum, SaveCast, castDown
  642.   if rollOver(spriteNum) then
  643.     set the castNum of sprite spriteNum to the number of cast castDown
  644.     updateStage()
  645.     return 1
  646.   else
  647.     set the castNum of sprite spriteNum to the number of cast SaveCast
  648.     updateStage()
  649.     return 0
  650.   end if
  651. end
  652.  
  653. on DisableBtn btnName, btnSprite
  654.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  655. end
  656.  
  657. on EnableBtn btnName, btnSprite
  658.   set the castNum of sprite btnSprite to the number of cast btnName
  659. end
  660.  
  661. on setRollName theName
  662.   global RollName
  663.   set RollName to theName
  664. end
  665.  
  666. on getRollName
  667.   global RollName
  668.   return RollName
  669. end
  670.  
  671. on Set_NOTEPADSprite theSp
  672.   global NOTEPADSprite
  673.   set NOTEPADSprite to theSp
  674. end
  675.  
  676. on Get_NOTEPADSprite
  677.   global NOTEPADSprite
  678.   return NOTEPADSprite
  679. end
  680.  
  681. on Set_GLOSSARYSprite theSp
  682.   global GLOSSARYSprite
  683.   set GLOSSARYSprite to theSp
  684. end
  685.  
  686. on Get_GLOSSARYSprite
  687.   global GLOSSARYSprite
  688.   return GLOSSARYSprite
  689. end
  690.  
  691. on Set_SoundSprite theSp
  692.   global SoundSprite
  693.   set SoundSprite to theSp
  694. end
  695.  
  696. on get_SOUNDSprite
  697.   global SoundSprite
  698.   return SoundSprite
  699. end
  700.  
  701. on Set_HelpSprite theSp
  702.   global HelpSprite
  703.   set HelpSprite to theSp
  704. end
  705.  
  706. on get_HELPSprite
  707.   global HelpSprite
  708.   return HelpSprite
  709. end
  710.  
  711. on Set_NEXTSprite theSp
  712.   global NEXTSprite
  713.   set NEXTSprite to theSp
  714. end
  715.  
  716. on get_NEXTSprite
  717.   global NEXTSprite
  718.   return NEXTSprite
  719. end
  720.  
  721. on Set_BACKSprite theSp
  722.   global BACKSprite
  723.   set BACKSprite to theSp
  724. end
  725.  
  726. on get_BACKSprite
  727.   global BACKSprite
  728.   return BACKSprite
  729. end
  730.  
  731. on Set_NavigatorHL theSp
  732.   global NavigatorHL
  733.   set NavigatorHL to theSp
  734. end
  735.  
  736. on get_NavigatorHL
  737.   global NavigatorHL
  738.   return NavigatorHL
  739. end
  740.  
  741. on Set_IndexSprite theSp
  742.   global IndexSprite
  743.   set IndexSprite to theSp
  744. end
  745.  
  746. on get_IndexSprite
  747.   global IndexSprite
  748.   return IndexSprite
  749. end
  750.  
  751. on Set_TagWDSprite theSp
  752.   global TagWdSprite
  753.   set TagWdSprite to theSp
  754. end
  755.  
  756. on Get_TagWdSprite
  757.   global TagWdSprite
  758.   return TagWdSprite
  759. end
  760.  
  761. on Set_FindSprite theSp
  762.   global FindSprite
  763.   set FindSprite to theSp
  764. end
  765.  
  766. on get_FindSprite
  767.   global FindSprite
  768.   return FindSprite
  769. end
  770.  
  771. on Set_MainSprite theSp
  772.   global MainSprite
  773.   set MainSprite to theSp
  774. end
  775.  
  776. on get_MainSprite
  777.   global MainSprite
  778.   return MainSprite
  779. end
  780.  
  781. on Set_NEXT theSp
  782.   global next
  783.   set next to theSp
  784. end
  785.  
  786. on Get_NEXT
  787.   global next
  788.   return next
  789. end
  790.  
  791. on Set_PlayDub theMode
  792.   global PlayDub
  793.   set PlayDub to theMode
  794. end
  795.  
  796. on Get_PlayDub
  797.   global PlayDub
  798.   return PlayDub
  799. end
  800.  
  801. on Set_ScreenSubject theNum
  802.   global ScreenSubject
  803.   set ScreenSubject to theNum
  804. end
  805.  
  806. on Get_ScreenSubject
  807.   global ScreenSubject
  808.   return ScreenSubject
  809. end
  810.  
  811. on set_MarkSprite theNum
  812.   global MarkSprite
  813.   set MarkSprite to theNum
  814. end
  815.  
  816. on Get_MarkSprite
  817.   global MarkSprite
  818.   return MarkSprite
  819. end
  820.  
  821. on setTimer int
  822.   global theTime
  823.   set theTime to int
  824. end
  825.  
  826. on getTimer
  827.   global theTime
  828.   return theTime
  829. end
  830.  
  831. on DisableBTNS
  832.   global DisableMode
  833.   set DisableMode to 1
  834. end
  835.  
  836. on EnableBtns
  837.   global DisableMode
  838.   set DisableMode to 0
  839. end
  840.  
  841. on get_Disabled
  842.   global DisableMode
  843.   return DisableMode
  844. end
  845.